Store adapter — Amazon Marketplace¶
The adapter
object contains properties for connecting to the Amazon Marketplace API.
Parent object: a store with property "platform" : "amazon_spartner"
Required properties¶
The following adapter
properties are required for Amazon Marketplace stores.
marketplace_id
¶
Property | marketplace_id |
---|---|
Name | Marketplace |
Data type | string |
Accepted values |
|
Required? | Yes |
refresh_token
¶
Property | refresh_token |
---|---|
Name | Amazon Refresh Token |
Data type | string |
Requirements | must be valid |
Required? | Yes |
selling_partner_id
¶
Property | selling_partner_id |
---|---|
Name | Merchant/Seller ID |
Data type | string |
Required? | Yes |
Optional properties¶
The following adapter
properties are optional for Amazon Marketplace stores.
fulfillment_latency
¶
Property | fulfillment_latency |
---|---|
Name | Fulfillment Latency (Handling Time) in days |
Data type | integer |
Default | 0 (use seller's account default handling time) |
Example¶
Example: create a new Amazon Marketplace store
curl -X POST \
-H "Authorization: Bearer $JWT_TOKEN" \
-H "Content-Type: application/json" \
https://api.getdropstream.com/stores \
-d @- <<EOF
{
"customer_id" : "1234",
"name" : "/stores POST platform=amazon_spartner",
"platform" : "amazon_spartner",
"adapter" : {
"selling_partner_id": "ABC123ABC123AB",
"marketplace_id": "ATVPDKIKX0DER",
"refresh_token": "abc123"
}
}
EOF
For details about this request type, see: Create a new store.